package com.windowes.weichang.controller.platform;

import com.windowes.weichang.common.ServerResponse;
import com.windowes.weichang.service.DemandLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 *
 * @author: yangqing
 * @email: qing.yang@bangdao-tech.com
 * @createTime: 2018/7/1 下午10:39
 * @description:
 *
 **/
@RestController
@RequestMapping("demand/log")
@Api(description = "用户需求操作记录相关API")
public class DemandLogController {

    DemandLogService demandLogService;

    @ApiOperation(value = "获取单条用户需求的操作记录", notes = "")
    @GetMapping("demand")
    public ServerResponse list(Integer demandId) {
        return demandLogService.listByDemandId(demandId);
    }
}
